import Http from '../../http';
import {download} from '../../../library/commonUtil';

export const pageApi = function(param: any) {
    return Http.get('/sys-role/page', param)
}

export const listApi = function(param: any) {
    return Http.get('/sys-role/list', param)
}

export const saveApi = function(param: any) {
    return Http.post('/sys-role/save', param)
}

export const removeApi = function(id: number) {
    return Http.post('/sys-role/remove/'+id)
}

export const infoApi = function(id: number) {
    return Http.get('/sys-role/info/'+id)
}

export const exportApi = function(param: any) {
    download('角色信息.xlsx','/sys-role/export', param);    
}

export const queryAssignedMenuApi = function(id: number) {
    return Http.get('/sys-role/assigned-menu/'+id)
}

export const assigningMenusApi = function(param: any) {
    return Http.post('/sys-role/assigning-menus', param)
}




